import React from 'react';
import moment from 'moment';
import styles from './index.less';

const ArticleListContent = ({ data: { subTitle, createTime } }) => (
  <div className={styles.listContent}>
    <div className={styles.description}>{subTitle}</div>
    <div className={styles.extra}>
      <em>{moment(createTime).format('YYYY-MM-DD HH:mm')}</em>
    </div>
  </div>
);

export default ArticleListContent;
